#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"


void test()
{
	Heap hp;
	HeapInit(&hp);
	int arr[] = { 1,5,4,2,3 };
	for (int i = 0; i < sizeof(arr) / sizeof(int); i++)
	{
		Heapsort(arr, sizeof(arr) / sizeof(int));
		printf("%d", arr[i]);
	}
	/*while (!HeapEmpty(&hp))
	{
		Heapsort(arr,sizeof(arr)/sizeof(int));
		printf("%d",HeapTop(&hp));
	}*/
	HeapDestory(&hp);
}

int main()
{
	test();
	return 0;
}